package com.base.mapper.voipmapper;

import com.base.po.sqlparam.OperationlogsExamplePage;
import com.base.po.voip.Operationlogs;
import com.base.po.voip.OperationlogsExample;
import com.base.utils.Page;

import java.util.List;
import org.apache.ibatis.annotations.Param;

public interface OperationlogsMapper {
	int countByExample(OperationlogsExample example);

	int deleteByExample(OperationlogsExample example);

	int deleteByPrimaryKey(String id);

	int insert(Operationlogs record);

	int insertSelective(Operationlogs record);

	List<Operationlogs> selectByExample(OperationlogsExample example);

	List<Operationlogs> selectByExamplePage(OperationlogsExamplePage example);
	
	List<Operationlogs> selectByAll(@Param("page") Page page, @Param("ipinfo") String ipinfo,
                                    @Param("name") String name, @Param("timeFrom") String timeFrom, @Param("timeTo") String timeTo);
	
	List<Operationlogs> selectByName(@Param("page") Page page, @Param("name") String name,
                                     @Param("ipinfo") String ipinfo, @Param("timeFrom") String timeFrom, @Param("timeTo") String timeTo);

	List<Operationlogs> selectByType5();

	List<Operationlogs> selectByType6();

	List<Operationlogs> selectByType7();

	Operationlogs selectByPrimaryKey(String id);

	int updateByExampleSelective(@Param("record") Operationlogs record, @Param("example") OperationlogsExample example);

	int updateByExample(@Param("record") Operationlogs record, @Param("example") OperationlogsExample example);

	int updateByPrimaryKeySelective(Operationlogs record);

	int updateByPrimaryKey(Operationlogs record);
	
	int countByAll(@Param("ipinfo") String ipinfo, @Param("name") String name,
                   @Param("timeFrom") String timeFrom, @Param("timeTo") String timeTo);
	
	int countByName(@Param("name") String name, @Param("ipinfo") String ipinfo,
                    @Param("timeFrom") String timeFrom, @Param("timeTo") String timeTo);
}